package com.longsys.framework.web.util;

import java.util.Calendar;
import java.util.Date;

public class DateUtil {

    public static Date plusDate(Date sourceDate, int num, int timeType) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(sourceDate);
        calendar.add(timeType, num);
        return calendar.getTime();
    }
}
